<form>
	<table cellspacing="6" width="100%">
		<tr>
			<td width="90">用户编号：</td>
			<td><input class="easyui-validatebox" type="text" value="<{$info.user_id}>" readonly style="width:200px" /></td>
		</tr>
		<tr>
			<td>用户名称：</td>
			<td><input class="easyui-validatebox" type="text" name="info[user_name]"  readonly value="<{$info.user_name}>" data-options="required:true,validType:{length:[2,20]}" style="width:200px" /></td>
		</tr>
		<tr>
			<td colspan='2'><input class='easyui-validatebox' type='radio' name='info[pwd]' value='1' checked onClick="setLoginPwdType(this.value)"/>默认手机号后6位为初始化密码</td>
		</tr>
		<tr>
			<td colspan='2'><input class='easyui-validatebox' id="hand_setloginpwd"  type='radio' name='info[pwd]' onClick="setLoginPwdType(this.value)" value='2' />手工设置密码</td>			
		</tr>
	</table>
	<div style='margin:5px' id='dis'>	
		输入新密码: <input class="easyui-validatebox" type="password" name="info[user_password]" data-options="validType:{length:[2,20]}" style="width:200px" /><br/>
		确认新密码: <input class="easyui-validatebox" type="password" name="info[re_password]" data-options="validType:{length:[2,20]}" style="width:200px" />
	</div>
</form>

<script type='text/javascript'>


/**
 * 1:手机号后6位
 * 2: 手动修改密码
 */
function setLoginPwdType(setloginpwd_val){

	if(typeof(setloginpwd_val)=='undefined'){
		
		document.getElementById('dis').style.display = "none";
		return false;
	}
	if(setloginpwd_val=='1'){
		document.getElementById('dis').style.display = "none";
	}else if(setloginpwd_val=='2'){
		document.getElementById('dis').style.display = "block";
	}
	return ;
}
</script>

<script type='text/javascript'>
	window.onload = setLoginPwdType('1');
</script>

